<div class="ResultSearch">

<?php
    include 'Search_model.php';
    $inputString=  mysql_real_escape_string($_GET['inputString']);
    $arr_ResulPro=  searchProduct($inputString);
        if($arr_ResulPro!=NULL)
        {          
            foreach ($arr_ResulPro as $result) {
//                echo '<div class="searchResultbox" style=" color:#A05;border:1px dotted #000; width:95%; padding:10px; font-size:12px;">';
//                echo'<span style="color:#8A0045; font-size:14px; font-weight:bold">'.$result[1].'</span><br>';
//				 echo '<span"><a href="Search/SearchDetail.php"><img width="50px" height="50px" src="'.$result[4].'"></a><span><br>';
//                echo '<span > Mô tả: '.substr($result[2], 0, 100).'...</span><br>';
//                echo '<span> Giá bán: '.$result[3].'</span><br>';
//				echo '<span style="color:#00007D"><a href="../Search/SearchDetail.php?ProductID='.$result[0].'">Xem chi tiết</a></span>';
//               // echo '<img width="133px" height="160px" src="'.$result[4].'" />';
//               echo '</div>';
             ?>
        <table class="table" width="850" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <th  rowspan="4" scope="row" width="180px">&nbsp;<a href="Search/SearchDetail.php"><img width="133px" height="180px" src="<?php echo  $result[4]; ?>"></a></th>
                <td>&nbsp;<span style="color:#BF0000"><?php echo $result[1];?></span></td>
              </tr>
              <tr>
                <td>&nbsp;<span > Mô tả: <?php echo substr($result[2], 0, 200) ;?>...</span></td>
              </tr>
              <tr>
                <td>&nbsp;<span> Giá bán: <?php echo $result[3];?>  VND</span></td>
              </tr>
               <tr>
                <td>&nbsp;<span style="color:#00007D"><a href="../Search/SearchDetail.php?ProductID=<?php echo $result[0];?>">Xem chi tiết</a></span></td>
              </tr>
            </table>
               <?php   
            }
        }
        else
            echo '<p>Không tìm thấy kết quả</p>';   
?>
            
</div>